#!/usr/bin/env bash 
 
echo "start install zookeeper"  

echo "开始进入解压..."
tar -zxvf /home/downloads/apache-zookeeper-3.5.5-bin.tar.gz -C /home/downloads/
echo "解压成功"

 

echo "删除已解压缩文件"
rm -rf /home/downloads/apache-zookeeper-3.5.5-bin

echo "添加软连接,修改为默认版本"
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
 
echo "zookeeper 安装成功"
echo "开始测试 zookeeper 是否安装看成。看下面输出:"
python3